'''
编写DOG的类,吃了多少斤，重，长多少，把共性的物体变成类。
'''


class Dogs:
    def __init__(self, w, l, c='公犬'):
        print("__int__ 被调用")
        self.weigth = w
        self.length = l
        self.type = c

    def sl(self, kilo):
        print(f"体重{self.weigth}公斤，体长{self.length}公分的{self.type}，这种犬每天要吃{kilo}公斤的食物")


c = input("please input ur pet's type(哈士奇，金毛，贵宾等):")
w = input("please input ur pet's weigth:")
l = input("please input ur pet's length:")
kilo = input("how many food ur pet eat:")

dog1 = Dogs(w, l, c)
Dogs.sl(dog1, kilo)
